package com.jenkinsM.demo.controller;


import com.jenkinsM.demo.UserModel.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FirstPageController {

    @Value("${dome.username}")
    private String userName;
    @Value("${dome.address}")
    private String address;

    @RequestMapping("/firstPage")
    public Object firstPage(){
        return new User(userName, address);

    }
}
